<#--定义网页标题-->
<#assign title="编辑系统模块">
<#--当前模块样式，没有就为空-->
<#assign curModuleStyle="">
<#--公共头部代码-->
<#include "/common/header.ftl">
<!--内容-->
<div class="widget">
    <div class="widget-header">
        <span class="widget-caption"><a id="back" href="#"><i class='glyphicon glyphicon-chevron-left'></i>返回</a></span>
    </div>
    <div class="widget-body">
        <div>
            <form class="form-horizontal" role="form" action="${webRoot}/console/systemModules/${systemModule.id}"
                  method="post">
                <input type="hidden" name="parent" value="${systemModule.parent}">
                <div class="form-group">
                    <label class="col-sm-2 control-label no-padding-right"><label
                            style="color:red;">*</label>名字：</label>
                    <div class="col-sm-5">
                        <input type="text" class="form-control" name="name" id="name"
                               placeholder="名字" value="${systemModule.name}"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label no-padding-right"><label
                            style="color:red;">*</label>编号：</label>
                    <div class="col-sm-5">
                        <input type="text" class="form-control" name="number" id="number"
                               placeholder="编号" value="${systemModule.number}"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label no-padding-right"><label
                            style="color:red;">*</label>图标：</label>
                    <div class="col-sm-5">
                        <input type="text" class="form-control" name="icon" id="icon"
                               placeholder="图标" value="${systemModule.icon}" <#if systemModule.parent != 0>disabled</#if>/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label no-padding-right"><label
                            style="color:red;">*</label>链接：</label>
                    <div class="col-sm-5">
                        <input type="text" class="form-control" name="href" id="href"
                               placeholder="链接" value="${systemModule.href}" <#if systemModule.parent == 0>disabled</#if>/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label no-padding-right"><label
                            style="color:red;">*</label>状态：</label>
                    <div class="col-sm-5">
                        <select class="form-control" id="status" name="status" data="${systemModule.status}">
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <input type="submit" class="btn btn-palegreen" value="保存"/>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<!-- Common Scripts -->
<#include "/common/scripts.ftl">

<!-- Custom Scripts -->
<script type="text/javascript" src="${webRoot}/resources/console/js/common/combobox.js"></script>
<script type="text/javascript" src="${webRoot}/resources/console/extra/js/jquery.form.js"></script>
<script type="text/javascript" src="${webRoot}/assets/js/toastr/toastr.js"></script>
<script type="text/javascript" src="${webRoot}/resources/console/js/systemModule/edit_systemModule.js"></script>
<#-- 公共底部代码 -->
<#include "/common/footer.ftl">
